//
//  CMPasterView.h
//  CropImg
//
//  Created by lipeng on 16/3/7.
//  Copyright © 2016年 lipeng. All rights reserved.
//

#import <UIKit/UIKit.h>

@class CMPasterCenterView;

#pragma mark - CMPasterDelegate (贴纸委托)
@protocol CMPasterDelegate <NSObject>

/**
 *  选中贴纸
 *
 *  @param pasterID 贴纸id
 */
-(void)makePasterBecomeFirst:(int)pasterID;

/**
 *  移除贴纸
 *
 *  @param pasterID 贴纸id
 */
-(void)removePaster:(int)pasterID;

@end


#pragma mark - CMPasterView (贴纸视图)
@interface CMPasterView : UIView

@property (nonatomic,strong) UIImage *imagePaster;
@property (nonatomic,assign) int pasterID;
@property (nonatomic,assign) BOOL isOnFirst;
@property (nonatomic,weak) id<CMPasterDelegate> delegate;

-(instancetype)initWithBgView:(CMPasterCenterView*)bgView
                     pasterID:(int)pasterID
                          img:(UIImage*)img;

-(void)remove;

@end
